import request from '@/utils/request'

// 查询影音配置列表
export function listConfig(query) {
  return request({
    url: '/movies/config/list',
    method: 'get',
    params: query
  })
}

// 查询影音配置详细
export function getConfig(moviesConfigId) {
  return request({
    url: '/movies/config/' + moviesConfigId,
    method: 'get'
  })
}

// 新增影音配置
export function addConfig(data) {
  return request({
    url: '/movies/config',
    method: 'post',
    data: data
  })
}

// 修改影音配置
export function updateConfig(data) {
  return request({
    url: '/movies/config',
    method: 'put',
    data: data
  })
}

// 删除影音配置
export function delConfig(moviesConfigId) {
  return request({
    url: '/movies/config/' + moviesConfigId,
    method: 'delete'
  })
}
